|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.app.Application
com.jme3.app.SimpleApplication
ga.view.MTIEvaluator
public class MTIEvaluator
Main class of furny. This provides a menu to select GA configurations and handles all the work.
It should be renamed for future use.
Nested Class Summary | |
---|---|
private class |
MTIEvaluator.EscapeListener
Keyboard listener to catch the ESCAPE event. |
private class |
MTIEvaluator.StatisticsListener
Keyboard listener to toggle statistics. |
Field Summary | |
---|---|
private GASettings |
actSettings
|
private com.jme3.app.state.AppState |
actState
|
private static java.util.logging.Logger |
LOGGER
|
private MenuState |
menu
|
private boolean |
showStatistics
|
private ViewSettings |
viewSettings
|
private java.io.File |
viewSettingsFile
|
private java.lang.String |
viewSettingsFileName
|
Fields inherited from class com.jme3.app.SimpleApplication |
---|
flyCam, fpsText, guiFont, guiNode, INPUT_MAPPING_CAMERA_POS, INPUT_MAPPING_EXIT, INPUT_MAPPING_HIDE_STATS, INPUT_MAPPING_MEMORY, rootNode, showSettings |
Fields inherited from class com.jme3.app.Application |
---|
assetManager, audioRenderer, cam, context, guiViewPort, inputEnabled, inputManager, joyInput, keyInput, listener, mouseInput, paused, pauseOnFocus, renderer, renderManager, settings, speed, stateManager, timer, touchInput, viewPort |
Constructor Summary | |
---|---|
MTIEvaluator(java.io.File viewSettingsFile)
Creates a new evaluation menu and loads the settings from the given file. |
|
MTIEvaluator(java.lang.String viewSettingsFileName)
Creates a new evaluation menu and loads the settings from the given file. |
Method Summary | |
---|---|
void |
backToMenu()
Callback when a state is exited. |
static void |
main(java.lang.String[] args)
Main method to test the evaluator. |
void |
modelSelected(java.lang.String name)
Callback when a model has been selected. |
void |
nextState()
Callback when the next state should be attached. |
private void |
setAndActivate(com.jme3.app.state.AppState newState)
Attaches a new app state and enables it. |
void |
setShowStatistics(boolean showStatistics)
Toggles the statistics display. |
void |
simpleInitApp()
|
void |
simpleUpdate(float tpf)
|
Methods inherited from class com.jme3.app.SimpleApplication |
---|
getFlyByCamera, getGuiNode, getRootNode, initialize, isShowSettings, loadGuiFont, setDisplayFps, setDisplayStatView, setShowSettings, simpleRender, start, update |
Methods inherited from class com.jme3.app.Application |
---|
createCanvas, destroy, destroyInput, enqueue, gainFocus, getAssetManager, getAudioRenderer, getCamera, getContext, getGuiViewPort, getInputManager, getListener, getRenderer, getRenderManager, getStateManager, getTimer, getViewPort, handleError, isPauseOnLostFocus, loseFocus, requestClose, reshape, restart, runQueuedTasks, setAssetManager, setPauseOnLostFocus, setSettings, setTimer, start, startCanvas, startCanvas, stop, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.logging.Logger LOGGER
private boolean showStatistics
private MenuState menu
private final java.lang.String viewSettingsFileName
private final java.io.File viewSettingsFile
private ViewSettings viewSettings
private GASettings actSettings
private com.jme3.app.state.AppState actState
Constructor Detail |
---|
public MTIEvaluator(java.lang.String viewSettingsFileName)
viewSettingsFileName
- The name of the xml file to load.public MTIEvaluator(java.io.File viewSettingsFile)
viewSettingsFile
- The xml file to load.Method Detail |
---|
public void simpleInitApp()
simpleInitApp
in class com.jme3.app.SimpleApplication
public void modelSelected(java.lang.String name)
MenuListener
modelSelected
in interface MenuListener
name
- Name of the model, must be unique.public void nextState()
MenuListener
nextState
in interface MenuListener
private void setAndActivate(com.jme3.app.state.AppState newState)
newState
- The new app state.public void backToMenu()
MenuListener
backToMenu
in interface MenuListener
public void simpleUpdate(float tpf)
simpleUpdate
in class com.jme3.app.SimpleApplication
public void setShowStatistics(boolean showStatistics)
showStatistics
- Show statistics if true
.public static void main(java.lang.String[] args)
args
- No arguments required.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |